06baab307bec46414becf306a5e461ee21bd3e10,osmorc/src/org/osmorc/make/BundleCompiler.java,BundleCompiler,getOutputPath,#Module#CompileContext#,79

Before Change


            // FIX  	 IDEADEV-40112
            File f = new File(VfsUtil.urlToPath(outputPathUrl));
            if (!f.exists() && !f.mkdirs()) {
                context.addMessage(CompilerMessageCategory.ERROR, OsmorcBundle.getTranslation("faceteditor.cannot.create.outputpath"), null, 0,0);
                return null;
            }

After Change


  @Nullable
  private static String getOutputPath(final @NotNull Module m, @NotNull CompileContext context) {
    final CompilerModuleExtension extension = CompilerModuleExtension.getInstance(m);
    if (extension == null) {
      context.addMessage(CompilerMessageCategory.WARNING, "Unable to determine the compiler output path for module " + m.getName(),
                         null, 0, 0);
      return null;
    }
    VirtualFile moduleCompilerOutputPath = extension.getCompilerOutputPath();

    String path;
    if (moduleCompilerOutputPath == null) {
      // get the url
      String outputPathUrl = extension.getCompilerOutputUrl();

      // create the paths
      // FIX  	 IDEADEV-40112
      File f = new File(VfsUtil.urlToPath(outputPathUrl));
      if (!f.exists() && !f.mkdirs()) {
        context.addMessage(CompilerMessageCategory.ERROR, "Cannot create compiler output path!", null, 0, 0);
        return null;
      }